﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MiserBlogData.Entities.UserVIP>" %>
<asp:Content ID="Title1" ContentPlaceHolderID="MainTitle" runat="server">
MiserLib
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <%
        foreach(var article in Model.ArticleList){ 
    %>
    <div class="title"><h1><a href="/Article/<%=article.Id %>" ><%=article.Title %></a>
    <%--<%=Html.ActionLink(article.Title, "Index", new { controller = "Article", id = article.Id }) %>--%></h1><h2><a href="/Categories/<%=article.Categories.Id %>"><%=article.Categories.Name %></a></h2></div>
    <div class="articleBy">
        <%=article.CDate.ToString("yyyy-MM-dd hh:mm")%> by <%=article.User.Name%>, <%=article.Visits %> visits
    </div>
    <p>
        <%=article.Content%>
    </p>
    <div style="border-bottom:2px double #ccc; padding-top:2px; color:#999999; padding-bottom:5px; height:16px; margin-bottom:40px">
        <div class="Categories">Tag:<%foreach( var tag in article.Tags){ %><a href="/Tag/<%=tag.Id %>" ><%=tag.Name%></a>&nbsp;&nbsp;&nbsp;<%} %></div>
        <div style="float:right"><%=article.CommentList.Count%> Comment</div>
    </div>
    <%} %>
</asp:Content>